package com.quanyan.place.entity.apiresp;

import java.io.Serializable;

/**
 * Created by Kingson.chan on 2016/5/28 0028.
 */
public class RespCategory implements Serializable {
    private Integer id;
    private String name;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public RespCategory(){

    }
    public RespCategory(Integer id,String name){
        this.id = id;
        this.name = name;
    }

    @Override
    public int hashCode() {
        String in = id+name;
        return in.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        RespCategory  respCategory = (RespCategory)obj;
        return id.equals(respCategory.id) && name.equals(respCategory.name);
    }

}
